package cn.izeno.wx.models.component

/**
 * 小程序模板
 */
class WeappTemplate {
  var templateId: Long = 0
  var userVersion: String = ""
  var userDesc: String = ""
  var createTime: Long = 0
    set(value) {
      field = if (value < 9999999999) {
        value * 1000
      } else {
        value
      }
    }

  // for fast json
  fun setDraftId(id: Long) {
    this.templateId = id
  }
}